package com.tyl.single单例模式;

/**
 * @author 静态内部类
 */
public class Holder {
    private Holder(){

    }
    public static Holder getInstance(){
        return InnerClass.HOLDER;
    }
    public static class InnerClass{
        private final static Holder HOLDER=new Holder();
    }
}
